#include <stdio.h>
#include <ctype.h>

#include "p2.h"

void copy_arr(double target[],double source[],int size){
    for (int i = 0; i < size; ++i) {
        target[i] = source[i];
    }
}
void copy_ptr(double *target, double *source, int size){
    for (int i = 0; i < size; ++i) {
        *(target + i) = *(source + i);
    }
}

void copy_ptrs(double *target_start, double *source_start, double *source_end){
    while (source_start<=source_end){
        *target_start = *source_start;
        target_start++;
        source_start++;
    }
}